﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SISLOG.BusinessEntities;
using SISLOG.DataAccess;
using Microsoft.Practices.Unity;

namespace SISLOG.BusinessLogic
{
    public class OrdenCompraBL: IOrdenCompraBL
    {
        [Dependency]
        public IOrdenCompraDAO OrdenCompraDAO { get; set; }
       
        public List<OrdenCompra> GetAllFromOrdenCompra()
        {
            return OrdenCompraDAO.GetAllFromOrdenCompra();
        }

        public OrdenCompra GetFromOrdenCompraById(int idOrdenCompra)
        {
            return OrdenCompraDAO.GetFromOrdenCompraById(idOrdenCompra);
        }

        public void RealizarOrdenCompra(OrdenCompra ordencompra)
        {
            OrdenCompraDAO.RealizarOrdenCompra(ordencompra);
        }
    }
}
